package com.hop.thread.safe;

public class DrawMoneyTest {
	
	public static void main(String[] args){
		Account account = new Account("张三",1000);
		DrawMoneyRunnable dr = new DrawMoneyRunnable(account,700);
		Thread t1 = new Thread(dr);
		Thread t2 = new Thread(dr);
		t1.start();
		t2.start();
	}
}
